package com.shk.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 记录用户访问记录对应实体类
 */
public class Log4j2Db implements Serializable {

    private Integer id;
    private Integer userId;
    private Date  opDate;
    private String IP;
    private String url;
    private Long opTime;
    private String userName;

    private String city;

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Log4j2Db{" +
                "id=" + id +
                ", userId=" + userId +
                ", opDate=" + opDate +
                ", IP='" + IP + '\'' +
                ", url='" + url + '\'' +
                ", opTime=" + opTime +
                ", userName='" + userName + '\'' +
                '}';
    }

    public String getUserNmae() {

        return userName;
    }

    public void setUserNmae(String userNmae) {
        this.userName = userNmae;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getOpDate() {
        return opDate;
    }

    public void setOpDate(Date opDate) {
        this.opDate = opDate;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getOpTime() {
        return opTime;
    }

    public void setOpTime(Long opTime) {
        this.opTime = opTime;
    }
}
